package ZuoYe15;

import java.util.Scanner;

public class FenJieZhiShu {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int number = scan.nextInt();

		while (number != 1) {
			for (int i = 2; i < number; i++) {
				if (0 == number % i) {
					System.out.print(i+((i==number)?"":"*"));
					number /= i;
					i--;
				}
			}
		}

	}

}
